CC := gcc
CFLAGS= -w

RUN=build/exe_obj
SOURCES=src/pager.c src/utils.c src/__test.c
OBJECTS=$(SOURCES:src/%.c=build/%.o)

all: mkdirp $(RUN)

mkdirp:
	mkdir -p build

clean:
	rm -rf build

$(RUN): $(OBJECTS)
	$(CC) $(CFLAGS) $^ -o $@
	
build/%.o: src/%.c
	$(CC) $(CFLAGS) -c $< -o $@

debug:
	@echo $(OBJECTS)

